

var initPopup = function(){
	var s = document.getElementById("submit");
	s.addEventListener('click',function(){
		
		chrome.tabs.getSelected(null,function(tab) {
				var ts = document.getElementById("ts");
				var url1="https://webank.abchina.com/odss/ied/geturl/checkClient?param=D9YqDZim06B9l8tsiTxy0DvnMUP6dOM1Tr9rh3bsZaXQcjnhuPnkerg4vluZryA3oAeHKQ8TEg0CbUtV5onvAk%2BbVanhD9AZ";
				chrome.extension.sendMessage({update: true,url:url1,ts:ts.value,tab:tab.id}, function(response) {});
			}       
		);
		
	})

}
initPopup()
